* {
  padding: 0px;
  margin: 0px;
  list-style: none;
  bottom: 0;
  text-decoration: none;
}
body{
  /* flex布局 https://www.runoob.com/w3cnote/flex-grammar.html */
  display: flex;
  /* 子盒子中心对齐 */
  justify-content: center;
  /* 定义项目在交叉轴上如何对齐 */
  align-items: center;
  height: 100vh;
  background-color: rgb(170, 190, 250);
}
.shell {
  width: 900px;
  height: 500px;
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  border: 10px #fff solid;
  box-shadow: 20px 30px 20px rgba(0, 0, 0, 0.5);
}

.images {
  width: 300%;
  height: 100%;
  display: flex;
  position: absolute;
  left: 0;
  /* 所有的属性都变化 */
  transition: .2s;
}

.img{
  width: 100%;
  background-size: cover;
}
.img:nth-child(1){
  background-image: url("images/1.jpg");
}
.img:nth-child(2){
  background-image: url("images/2.jpg");
}
.img:nth-child(3){
  background-image: url("images/3.jpg");
}

.min-images {
  display: flex;
  /* 可以使每个元素之间和元素距离边距的距离都相等 */
  justify-content: space-evenly;
  position: absolute;
  bottom: 20px;
  width: 40%;
  z-index: 999;
  right: 10%;
}

.min{
  width: 60px;
  height: 60px;
  cursor: pointer;
  border-radius: 50%;
  background-size: cover;
  border:5px solid rgba(255, 255, 255, 0.5);
  /* 设置图片的起始位置 */
  background-position: -20px 0;
}
.min:nth-child(1){
  background-image: url("images/1.jpg");
}
.min:nth-child(2){
  background-image: url("images/2.jpg");
}
.min:nth-child(3){
  background-image: url("images/3.jpg");
}

.button {
  width: 100%;
  height: 100%;
  position:absolute;
  display: flex;
  justify-content: space-between;
  user-select:none;
}

.button-left,
.button-right {
  font-size: 50px;
  background-color: rgba(160, 193, 255, 0.7);
  padding: 0 20px;
  cursor: pointer;
  line-height: 500px;
}
